import axios from '@/libs/request/axios'
// 获取融资校验方案
export const getFinancePlanList = (params) => {
    return axios.request({
        url: `/product/financePlan/getFinancePlanListData`,
        method: 'POST',
        data: params
    })
}
// 保存融资校验方案
export const saveFinancePlan = (params) => {
    return axios.request({
        url: `/product/financePlan/saveFinancePlan`,
        method: 'POST',
        data: params
    })
}
// 删除方案
export const deletePlan = (id, params) => {
    return axios.request({
        url: `/product/financePlan/deletePlan/${id}`,
        data:params,
        method: 'delete'
    })
}
// 获取融资校验方案数据
export const getListFinanceData = (params) => {
    return axios.request({
        url: '/product/productPlan/getFinanceListData',
        data: params,
        method: 'post'
    })
    }
// 设置有效
export const effective = (params) => {
    return axios.request({
        url: `/product/financePlan/effective`,
        params: params,
        method: 'post'
    })
}
// 设置无效
export const invalid = (params) => {
    return axios.request({
        url: `/product/financePlan/invalid`,
        params: params,
        method: 'post'
    })
}
// 复制
export const copyPlan = (params) => {
    return axios.request({
        url: `/product/financePlan/copyPlan`,
        method: 'POST',
        data: params
    })
}
